#pragma once
#ifndef INPUTKEYBOARD_H
#define INPUTKEYBOARD_H

//directinput
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>

#include "Input.h"

class CInputKeyboard:public CInput
{
private:
	//directinput keyboard data
	LPDIRECTINPUTDEVICE8 m_diKeyboardDevice;

	//array for the keyboard inputs
	BYTE m_keys[256];

public:
	CInputKeyboard(void);
	~CInputKeyboard(void);

	bool initialise(const LPDIRECTINPUT8 diObject);
	bool initialiseActionMapping(Element root);
	void doUpdate(void);
};

#endif